﻿namespace NewRedDotSystem
{
    public partial class RedDotSystem
    {
        /// <summary>
        /// 初始化，将逻辑节点进行加载
        /// </summary>
        protected void Init()
        {
            //在这里进行逻辑节点树的创建，或者对序列化数据进行反序列化
            var dot1 = new RedDotLogicNode(1, 0);
            var dot2 = new RedDotLogicNode(2, 1);
            var dot3 = new RedDotLogicNode(3, 2);
            
            AddRedDotLogic(dot1);
            AddRedDotLogic(dot2);
            AddRedDotLogic(dot3);
        }
    }
}